

#ifndef _ABS_WIDGET_H_
#define _ABS_WIDGET_H_

#include "CoreApi.hpp"
#include "AbstractObject.hpp"
#include <QWidget>
#include <QObject>
#include <QVBoxLayout>

namespace NSCore {

	class COREAPI AbstractWidget :
		public QWidget,
		public AbstractObject
	{
		Q_OBJECT
	public:
		AbstractWidget(QWidget* p = nullptr);
		virtual ~AbstractWidget();

	public:
		void addWidget(QWidget* _widget);
		void addStretch(int stretch = 0);
		/*override*/
	public:
		inline QString className() override { return "AbstractWidget"; };
	private:
		QVBoxLayout* m_layout{};

	};


}

#endif





